﻿using SharpDX.Direct3D11;
using System.Windows.Forms;
using SharpDX;
using SharpDX.D3DCompiler;
using SharpDX.DXGI;
using SharpDX.Windows;
using Device = SharpDX.Direct3D11.Device;

namespace Engine
{
    public class TextureContainer : ResourceContainer, System.IDisposable
    {
        public Texture2D Texture2d;
        public ShaderResourceView TextureResource;

        #region IDisposable
        //Ok
        ~TextureContainer()
        {
            Dispose();
        }

        public void Dispose()
        {
            if (Texture2d != null) Texture2d.Dispose();
            if (TextureResource != null) TextureResource.Dispose();
        }
        #endregion

    }
}
